package com.fztx;

import com.fztx.service.UserInterface;
import com.fztx.service.UserService;
import com.spring.FztxApplicationContext;

public class Test {
    public static void main(String[] args) {
        FztxApplicationContext applicationContext = new FztxApplicationContext(AppConfig.class);

        //因为动态代理使用的是jdk动态代理所以要用接口接收，cglib不会有这个问题
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();
    }
}
